package com.example.spring.domain;


import lombok.Data;

/**
 * 
 * @TableName company_types
 */
@Data
public class CompanyTypes {
    /**
     * 
     */
    private Integer company_type_id;

    /**
     * 
     */
    private String company_type_name;

    /**
     * 
     */
    private Integer sub_industry_id;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CompanyTypes other = (CompanyTypes) that;
        return (this.getCompany_type_id() == null ? other.getCompany_type_id() == null : this.getCompany_type_id().equals(other.getCompany_type_id()))
            && (this.getCompany_type_name() == null ? other.getCompany_type_name() == null : this.getCompany_type_name().equals(other.getCompany_type_name()))
            && (this.getSub_industry_id() == null ? other.getSub_industry_id() == null : this.getSub_industry_id().equals(other.getSub_industry_id()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCompany_type_id() == null) ? 0 : getCompany_type_id().hashCode());
        result = prime * result + ((getCompany_type_name() == null) ? 0 : getCompany_type_name().hashCode());
        result = prime * result + ((getSub_industry_id() == null) ? 0 : getSub_industry_id().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", company_type_id=").append(company_type_id);
        sb.append(", company_type_name=").append(company_type_name);
        sb.append(", sub_industry_id=").append(sub_industry_id);
        sb.append("]");
        return sb.toString();
    }
}